<template><div id="socket-io" /></template>

<script setup lang="ts">
import { watch } from 'vue'
import { useAccountStore } from '@/store'
import { initSocket } from '@/utils'

const accountStore = useAccountStore()

watch([() => accountStore.token], () => initSocket(), { immediate: true })
</script>

<style scoped></style>
